package cn.wolfcode.crud.domain;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
@ToString @NoArgsConstructor @AllArgsConstructor
public class SystemDictionary {
    private Long id;
    //字典目录标题宿写
    private String sn;
    //字典目录标题
    private String title;
    //字典目录标题来源
    private String intro;
    //通过一个get方法封装
    public String getJson(){
        Map map=new HashMap();
        map.put("id",id);
        map.put("title",title);
        map.put("intro",intro);
        map.put("sn",sn);
        return JSON.toJSONString(map);

    }


}